package com.guanyong.www.maoyanDemo;

import java.io.*;

/**
 * Created by Administrator on 2017/9/12 0012.
 */
public class dataTxt {




    public static void out(String file, String conent) {
        BufferedWriter out = null;
        try {
            out = new BufferedWriter(new OutputStreamWriter(
                    new FileOutputStream(file, true)));
            out.write(conent+"\r\n");
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            try {
                out.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }


    public static void main(String[] args) {
        dataTxt.out("E:\\dd.txt", "222222222222222");
    }

}
